package com.hghivln.blog.mapper;

import com.hghivln.blog.entity.BlogGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户_博客点赞表 Mapper 接口
 * </p>
 *
 * @author hghivln
 * @since 2021-09-25
 */
public interface BlogGoodsMapper extends BaseMapper<BlogGoods> {

    /**
     * 根据博客id 和 用户id 查询
     * @param blogId 博客id
     * @param id 用户id
     * @return 点赞数量
     */
    Integer getCountByBlogIdAndUserId(@Param("blogId") Long blogId,@Param("id") Long id);
}
